﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Platform.Infrastructure.Utils;

namespace System.Linq.Expressions
{
	public static class PropertyNameExpressions
	{

		public static string GetPropertyName( this Expression expression )
		{
			PropertyNameExpressionResolver resolver = new PropertyNameExpressionResolver( expression );
			return resolver.PropertyName;
		}
	}
}
